package me.minecraft.plugin.pokemonconverter.command;

import me.minecraft.plugin.pokemonconverter.config.MainConfig;
import org.bukkit.command.Command;
import org.bukkit.command.CommandSender;
import org.bukkit.command.TabExecutor;
import org.jetbrains.annotations.NotNull;

import java.util.List;

/**
 * @author langle__
 * @version 1.0
 */
public class MainCommand implements TabExecutor {

    @Override
    public boolean onCommand(@NotNull CommandSender sender, @NotNull Command command, @NotNull String label, @NotNull String[] args) {
        MainConfig.INSTANCE.load();
        sender.sendMessage("§6[§e宝可梦物品转换§6] §f已重载配置文件");
        return true;
    }

    @Override
    public List<String> onTabComplete(@NotNull CommandSender sender, @NotNull Command command, @NotNull String label, @NotNull String[] args) {
        return List.of();
    }

}
